package com.doris.lucene;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 搜索词统计
 * 
 * @author root
 *
 */
public class SearchWordStat {

	/**
	 * 单例
	 */
	private static final SearchWordStat INSTANCE = new SearchWordStat();
	/**
	 * 映射搜索词和出现次数的集合
	 */
	private static Map<String, Integer> map = new ConcurrentHashMap<String, Integer>();

	private SearchWordStat() {
	}

	public Map<String, Integer> getMap() {
		return map;
	}

	public static synchronized SearchWordStat getSingleton() {
		return INSTANCE;
	}

}
